package com.trkj.dao.hjj;


import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Holiday;
/**
 * 假种DAO
 * @author HJJ
 *
 */
public interface HolidayDAO extends CrudRepository<Holiday, Long>{
	@Query("from Holiday h")
	public List<Holiday> PageHolidays(Pageable p);
	//补班事务
	@Query("FROM Holiday h where h.holidayId=1")
	public List<Holiday> findAllno();
	@Query("from Holiday h where h.holidayName like ?1")
	public List<Holiday> HolidayLikeName(String holidayName,Pageable p);
} 